package com.hy.mydesktop.shared.rpc.meta;

import java.util.Map;

import com.extjs.gxt.ui.client.data.BaseModel;
import com.extjs.gxt.ui.client.data.ModelData;
import com.hy.mydesktop.client.component.mvc.event.EventStructureMetaModel;

/**
 * 
 * <ul>
 * <li>开发作者：花宏宇</li>
 * <li>设计日期：2010-10-18；时间：下午03:05:15</li>
 * <li>类型名称：GxtToSeamServiceTreeNode</li>
 * <li>设计目的：用于在Gxt和Seam之间，调用Rpc，并且支持TreePanel的创建</li>
 * </ul>
 * <ul>
 * <b>修订编号：</b>
 * <li>修订日期：</li>
 * <li>修订作者：</li>
 * <li>修订原因：</li>
 * <li>修订内容：</li>
 * </ul>
 */
public class GxtToSeamServiceTreeNode extends BaseModel {
	


	
	private static final long serialVersionUID = 7468429288812025698L;
	//private String displayName = null;

	

	public GxtToSeamServiceTreeNode() {
		super();
	}

	public GxtToSeamServiceTreeNode(Map<String, Object> properties) {
		super(properties);
	}

	
	public GxtToSeamServiceTreeNode(BaseModel[] methodArguments,
			String serviceComponentName, String serviceMethodName,String displayText) {
		super();
		this.setMethodArguments(methodArguments);
		this.setServiceComponentName(serviceComponentName);
		this.setServiceMethodName(serviceMethodName);
		this.setDisplayText(displayText);
		this.setChildren(true);
	}
	
	public GxtToSeamServiceTreeNode (
			BaseModel [ ] methodArguments ,
										String serviceComponentName ,
										String serviceMethodName ,
										String displayText,
										boolean hasChildren)
	{
		super ( ) ;
		this.setMethodArguments(methodArguments);
		this.setServiceComponentName(serviceComponentName);
		this.setServiceMethodName(serviceMethodName);
		this.setDisplayText(displayText);
		this.setChildren(hasChildren);
	}

	
	public BaseModel [ ] getMethodArguments ( )
	{
		return super.get("methodArguments") ;
	}

	
	public String getServiceComponentName ( )
	{
		return super.get("serviceComponentName") ;
	}

	
	public String getServiceMethodName ( )
	{
		return super.get("serviceMethodName") ;
	}

	
	public void setMethodArguments ( BaseModel [ ] methodArguments )
	{
		super.set("methodArguments", methodArguments);
	}

	
	public void setServiceComponentName ( String serviceComponentName )
	{
		super.set("serviceComponentName", serviceComponentName);
	}

	
	public void setServiceMethodName ( String serviceMethodName )
	{
		super.set("serviceMethodName", serviceMethodName);
	}
	
	public String getDisplayText() {
		return super.get("displayText");
	}
	
	public String getName() {
		return super.get("name");
	}
	
	public void setDisplayText(String displayText) {

		super.set("displayText", displayText);
		super.set("name", displayText);
	}
	
	public boolean hasChildren() {
		return super.get("hasChildren");
	}
	
	public void setChildren(boolean hasChildren) {
		super.set("hasChildren", hasChildren);
	}
	//EventStructureMetaModel
	
	public EventStructureMetaModel getEventStructureMetaModel() {
		return super.get("eventStructureMetaModel");
	}
	
	public void setEventStructureMetaModel(EventStructureMetaModel eventStructureMetaModel) {
		super.set("eventStructureMetaModel", eventStructureMetaModel);
	}
	
}
